<?php /* Smarty version Smarty-3.0.7, created on 2011-07-13 19:44:25
         compiled from ".\templates\envio.tpl.html" */ ?>
<?php /*%%SmartyHeaderCode:57274e1e1fc91e8d10-50358004%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'ed77cae51376d7e9fb214b425f8ff57cd77b1b97' => 
    array (
      0 => '.\\templates\\envio.tpl.html',
      1 => 1310508181,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '57274e1e1fc91e8d10-50358004',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<script type="text/javascript">
$(document).ready(function()
{
    $(".campaniaslst").change(function()
    {
        var element = $(this);
        var id=element.val();
        var dataString = 'id='+ id;
        $.ajax
        ({
        type: "POST",
        url: "ajax_campania.php",
        data: dataString,
        cache: false,
        success: function(html)
        {
          $(".preview_contenido").html(html);
        }
        });
    });
    $(".canalcomunicacionslst").change(function()
    {
        var element = $(this);
        var id=element.val();
        if(id=="4")
        {
            $('.mostrarocultar').fadeOut(200).show();
        }else
        {
            $('.mostrarocultar').fadeOut(200).hide();
            //var as = el.getElementsByTagName("lstemailcontactos");
        }
    });
});
</script>
<div align="justify" style="font-size:12px; color:#222222; padding: 5px 150px 30px 150px;">        
    <div style="border-bottom: 1px solid #DDD; padding: 8px 0px 0px 0px;">
        <h2 style="font-size:12px; color:#222222;"><?php echo $_smarty_tpl->getVariable('tituloprincipal')->value;?>
</h2>
    </div>
    
   <div>
   <form action="envios.php?do=<?php echo $_smarty_tpl->getVariable('dohacer')->value;?>
" method="post" enctype="multipart/form-data" name="campanias" id="campanias">
       <table  align="center" border="0" cellspacing="0" cellpadding="0" width="70%" class="small">
           <tbody>
            <tr>
                <td colspan="2" style="padding:10px 0px 10px 0px">
                   <div align="center">
                    <input title="<?php echo $_smarty_tpl->getVariable('txtboton')->value;?>
 [Alt+S]" accesskey="S" class="save" type="submit" name="button" value="<?php echo $_smarty_tpl->getVariable('txtboton')->value;?>
" style="width:100px" onclick="return( formvalidacion());">
                    <input title="Cancelar [Alt+X]" accesskey="X" class="cancel" type="button" name="button" value="Cancelar" style="width:100px" onclick="window.history.back()">
                   </div>
                </td>
            </tr>

            <tr>
                <td colspan="2" class="detailedViewHeader">
                    <b>Informaci&oacute;n del Env&iacute;o</b>
                </td>
            </tr>

            <!-- Added this file to display the fields in Create Entity page based on ui types  -->
            <tr style="height:25px">

                <td width="30%" class="dvtCellLabel" align="right">
                    <font color="red"></font>C&oacute;digo
                </td>

                <td width="70%" align="left" class="dvtCellInfo">
                    <input readonly="" name="codigo" style="border:1px solid #bababa; width:20%;" type="text" value="<?php echo $_smarty_tpl->getVariable('env_cod')->value;?>
">
                </td>

            </tr>

            <tr style="height:25px">
                <td width="30%" class="dvtCellLabel" align="right">
                    <font color="red"></font>Descripci&oacute;n
                </td>

                <td width="70%" align="left" class="dvtCellInfo">
                    <textarea name="descripcion" class="detailedViewTextBox" tabindex="" onfocus="this.className='detailedViewTextBoxOn'" onblur="this.className='detailedViewTextBox'" cols="70" rows="2"><?php echo utf8_encode($_smarty_tpl->getVariable('descripcion')->value);?>
</textarea>
                    <!--<input size="130" type="text" name="titulo" tabindex="" class="detailedViewTextBox" onfocus="this.className='detailedViewTextBoxOn'" onblur="this.className='detailedViewTextBox'" style="width:90%;" value="<?php echo utf8_encode($_smarty_tpl->getVariable('titulo')->value);?>
">-->
                    
                </td>

            </tr>
            <tr style="height:25px">
                <!-- uitype 111 added for noneditable existing picklist values - ahmed -->
                <td width="30%" class="dvtCellLabel" align="right">
                        <font color="red"></font>
                        Canal de Comunicaci&oacute;n
                </td>

                <td width="70%" align="left" class="dvtCellInfo">
                <select name="lstcanalcomunicacion" tabindex="" class="canalcomunicacionslst" style="width: 45%;">
                <?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']['i']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['name'] = 'i';
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] = is_array($_loop=$_smarty_tpl->getVariable('listacanales')->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total']);
?>
                <?php if ($_smarty_tpl->getVariable('canalactual')->value==$_smarty_tpl->getVariable('listacanales')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['can_cod']){?>
                    <option value="<?php echo $_smarty_tpl->getVariable('listacanales')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['can_cod'];?>
" selected="selected"><?php echo utf8_encode($_smarty_tpl->getVariable('listacanales')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['can_nombre']);?>
</option>
                <?php }else{ ?>
                    <option value="<?php echo $_smarty_tpl->getVariable('listacanales')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['can_cod'];?>
"><?php echo utf8_encode($_smarty_tpl->getVariable('listacanales')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['can_nombre']);?>
</option>
                <?php }?>
                <?php endfor; endif; ?>
                </select>
                </td>
           </tr>
           <tr style="height:25px">
                <!-- uitype 111 added for noneditable existing picklist values - ahmed -->                
                <td width="30%" class="dvtCellLabel" align="right">
                        <font color="red"></font>
                        Listas de Contactos
                </td>

                <td width="70%" align="left" class="dvtCellInfo">
                <div class="mostrarocultar">
                <select name="lstemailcontactos" tabindex="" class="small" style="width: 85%;">
                <option value="NULL" selected="selected">-- Seleccionar Lista E-mail Contactos --</option>
                <?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']['i']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['name'] = 'i';
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] = is_array($_loop=$_smarty_tpl->getVariable('listacontactos')->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total']);
?>
                <?php if ($_smarty_tpl->getVariable('listacontactoactual')->value==$_smarty_tpl->getVariable('listacontactos')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['lmc_cod']){?>
                    <option value="<?php echo $_smarty_tpl->getVariable('listacontactos')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['lmc_cod'];?>
" selected="selected"><?php echo utf8_encode($_smarty_tpl->getVariable('listacontactos')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['lmc_descripcion']);?>
</option>
                <?php }else{ ?>
                    <option value="<?php echo $_smarty_tpl->getVariable('listacontactos')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['lmc_cod'];?>
"><?php echo utf8_encode($_smarty_tpl->getVariable('listacontactos')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['lmc_descripcion']);?>
</option>
                <?php }?>
                <?php endfor; endif; ?>
                </select>
                </div>
                </td>
                
           </tr>
           <tr style="height:25px">
                <!-- uitype 111 added for noneditable existing picklist values - ahmed -->
                <td width="30%" class="dvtCellLabel" align="right">
                        <font color="red"></font>
                        Listas de Empresas
                </td>

                <td width="70%" align="left" class="dvtCellInfo">
                <div class="mostrarocultar">
                
                <select name="lstemailempresas" tabindex="" class="small" style="width: 85%;">
                <option value="NULL" selected="selected">-- Seleccionar Lista E-mail Empresa --</option>
                <?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']['i']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['name'] = 'i';
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] = is_array($_loop=$_smarty_tpl->getVariable('listaempresas')->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total']);
?>
                <?php if ($_smarty_tpl->getVariable('empresaactual')->value==$_smarty_tpl->getVariable('listaempresas')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['lme_cod']){?>
                    <option value="<?php echo $_smarty_tpl->getVariable('listaempresas')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['lme_cod'];?>
" selected="selected"><?php echo utf8_encode($_smarty_tpl->getVariable('listaempresas')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['lme_descripcion']);?>
</option>
                <?php }else{ ?>
                    <option value="<?php echo $_smarty_tpl->getVariable('listaempresas')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['lme_cod'];?>
"><?php echo utf8_encode($_smarty_tpl->getVariable('listaempresas')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['lme_descripcion']);?>
</option>
                <?php }?>
                <?php endfor; endif; ?>
                </select>
                </div>
                </td>

           </tr>
           <tr style="height:25px">
                <!-- uitype 111 added for noneditable existing picklist values - ahmed -->
                <td width="30%" class="dvtCellLabel" align="right">
                        <font color="red"></font>
                        Estado Env&iacute;o
                </td>
                <td width="70%" align="left" class="dvtCellInfo">
                <select name="lstestado" tabindex="" class="small" style="width: 25%;">
                <?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']['i']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['name'] = 'i';
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] = is_array($_loop=$_smarty_tpl->getVariable('estados')->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total']);
?>
                <?php if ($_smarty_tpl->getVariable('estadoactual')->value==$_smarty_tpl->getVariable('estados')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['est_cod']){?>
                    <option value="<?php echo $_smarty_tpl->getVariable('estados')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['est_cod'];?>
" selected="selected"><?php echo utf8_encode($_smarty_tpl->getVariable('estados')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['est_descripcion']);?>
</option>
                <?php }else{ ?>
                    <option value="<?php echo $_smarty_tpl->getVariable('estados')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['est_cod'];?>
"><?php echo utf8_encode($_smarty_tpl->getVariable('estados')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['est_descripcion']);?>
</option>
                <?php }?>
                <?php endfor; endif; ?>
                </select>
                </td>
           </tr>           
           <tr style="height:25px">
                <!-- uitype 111 added for noneditable existing picklist values - ahmed -->
                <td width="30%" class="dvtCellLabel" align="right">
                        <font color="red"></font>
                        Seleccionar Campa&ntilde;a
                </td>

                <td  width="70%" align="left" class="dvtCellInfo">
                <select name="lstcampania" tabindex="" class="campaniaslst" style="width: 85%;">
                <option value="NULL" selected="selected">-- Seleccionar Campa&ntilde;a Publicitaria --</option>
                <?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']['i']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['name'] = 'i';
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] = is_array($_loop=$_smarty_tpl->getVariable('listacampanias')->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total']);
?>
                <?php if ($_smarty_tpl->getVariable('campaniaactual')->value==$_smarty_tpl->getVariable('listacampanias')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['cam_cod']){?>
                    <option value="<?php echo $_smarty_tpl->getVariable('listacampanias')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['cam_cod'];?>
" selected="selected"><?php echo utf8_encode($_smarty_tpl->getVariable('listacampanias')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['cam_titulo']);?>
</option>
                <?php }else{ ?>
                    <option value="<?php echo $_smarty_tpl->getVariable('listacampanias')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['cam_cod'];?>
"><?php echo utf8_encode($_smarty_tpl->getVariable('listacampanias')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['cam_titulo']);?>
</option>
                <?php }?>
                <?php endfor; endif; ?>
                </select>
                </td>
           </tr>           
           <tr style="height:20px">
               <td>&nbsp;</td>
           </tr>
           <tr>
               <td colspan="2" class="detailedViewHeader">
                   <b>Contenido de la Campa&ntilde;a</b>
                </td>
           </tr>
           <tr>
                <td colspan="2">                    
                    <div class="preview_contenido">
                    </div>
                    <!--<textarea name="contenido" id="textarea_contenido" class="contenido" cols="90" rows="40"></textarea>-->
		</td>
           </tr>                                     
            <tr tyle="height:25px"><td>&nbsp;</td>
            </tr>

           <tr style="height:20px">
               <td>&nbsp;</td>
           </tr>

           <!--
           <tr>
               <td colspan="2" class="detailedViewHeader">
                    <b>Informaci&oacute;n Adicional</b>
                </td>
           </tr>

           <tr style="height:25px">

               <td width="20%" class="dvtCellLabel" align="right">
                    <font color="red"></font>Comentario
                </td>

                <td colspan="2">
                    <textarea name="comentario"  class="detailedViewTextBox" tabindex="" onfocus="this.className='detailedViewTextBoxOn'" onblur="this.className='detailedViewTextBox'" cols="90" rows="5"><?php echo utf8_encode($_smarty_tpl->getVariable('comentario')->value);?>
</textarea>
		</td>
            </tr>

           -->

            <tr>
		<td colspan="2" style="padding:10px 0px 10px 0px">
		<div align="center">
                    <input title="<?php echo $_smarty_tpl->getVariable('txtboton')->value;?>
 [Alt+S]" accesskey="S" class="save" type="submit" name="button" value="<?php echo $_smarty_tpl->getVariable('txtboton')->value;?>
" style="width:100px">
                    <input title="Cancelar [Alt+X]" accesskey="X" class="cancel" type="button" name="button" value="Cancelar" style="width:100px" onclick="window.history.back()">
		</div>
		</td>
            </tr>            
	</tbody>       
       </table>
    </form>
    </div>
   
</div>